//
//  TableDetailCell.m
//  22-AliPlanet_HomeWork
//
//  Created by 曹曹 on 16/8/15.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "TableDetailCell.h"
#import "DetailSonglist.h"

@interface TableDetailCell ()
@property (weak, nonatomic) IBOutlet UILabel *indexLabel;
@property (weak, nonatomic) IBOutlet UILabel *songNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *singerLabel;

@end

@implementation TableDetailCell

- (void)setSonglist:(DetailSonglist *)songlist {
    _songlist = songlist;
    NSLog(@"%@", songlist.name);
    _songNameLabel.text = songlist.name;
    _subTitleLabel.text = songlist.alias;
    _singerLabel.text = [[songlist.singerName stringByAppendingString:@" - "] stringByAppendingString:songlist.albumName];
    _indexLabel.text = [NSString stringWithFormat:@"%ld", _index];
    NSLog(@"%@", _indexLabel.text);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
